import request from '@/utils/request'

export function getListPage(query) {
  return request({
    url: '/basic/lineSite/',
    method: 'GET',
    params: query
  })
}

export function updateData(query) {
  return request({
    url: '/basic/lineSite/',
    method: 'POST',
    data: query
  })
}

export function deleteData(query) {
  return request({
    url: `/basic/lineSite/${query}`,
    method: 'DELETE'
  })
}

export function getListAll() {
  return request({
    url: `/basic/site/listAll`,
    method: 'get'
  })
}

export function getListByLineId(query) {
  return request({
    url: `/basic/lineSite/listByLineId/${query}`,
    method: 'get'
  })
}

export function getLineSiteCode(query) {
  return request({
    url: `/basic/lineSite/getLineSiteCode`,
    method: 'get',
    params: query
  })
}
